Skip to content

Makefile migration: make build_sdk #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 16, 2025
Merged

Makefile migration: make build_sdk #631

merged 10 commits into from
Jun 16, 2025

Conversation

i-am-tom
Copy link
Contributor

@i-am-tom i-am-tom commented Jun 11, 2025

Following on from #629, this PR lifts buildSdk into the Makefile. make build now runs build_sdk (migrated from the F# file) and build_language_host (previously make build).

@i-am-tom i-am-tom self-assigned this Jun 11, 2025
@i-am-tom i-am-tom added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Jun 11, 2025
@i-am-tom i-am-tom changed the base branch from i-am-tom/make-clean to main June 11, 2025 10:59
@tgummerer
Copy link
Contributor

Did you see https://docs.google.com/document/d/1ftBuHGGb7SErE2WCB-MHbOMVu_VmbF81lxS3e520e3c/edit?tab=t.0#heading=h.u981p2fv4khv? We should probably follow that, or have some more discussion there, so we can have a standard set of makefile targets.

@i-am-tom i-am-tom changed the title Makefile migration: make build-sdk Makefile migration: make build_sdk Jun 14, 2025
@i-am-tom i-am-tom marked this pull request as ready for review June 14, 2025 07:29
@i-am-tom i-am-tom requested a review from a team as a code owner June 14, 2025 07:29
@i-am-tom i-am-tom enabled auto-merge June 14, 2025 07:29
Makefile Outdated
build: clean build_sdk build_language_host

build_sdk:
cd sdk && dotnet restore --no-cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this is what we already do without much of an explanation, but I'm curious why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore

In most cases, you don't need to explicitly use the dotnet restore command, since if a NuGet restore is necessary, the following commands run it implicitly:

...
dotnet build
...

Good point - I think we can probably just remove this!

i-am-tom and others added 2 commits June 16, 2025 11:01
Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com>
Copy link
Contributor

@tgummerer tgummerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I just realized, we should update the readme as well.

@i-am-tom i-am-tom added this pull request to the merge queue Jun 16, 2025
@tgummerer tgummerer removed this pull request from the merge queue due to a manual request Jun 16, 2025
@tgummerer
Copy link
Contributor

(removed from queue for readme updates)

@i-am-tom i-am-tom enabled auto-merge June 16, 2025 10:09
@i-am-tom i-am-tom added this pull request to the merge queue Jun 16, 2025
Merged via the queue into main with commit acc6535 Jun 16, 2025
21 checks passed
@i-am-tom i-am-tom deleted the i-am-tom/make-build-sdk branch June 16, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants